package com.bubblegumproject.ogo.remote.tunnel;

import com.bubblegumproject.ogo.remote.io.ActionPacket;

import java.io.Serializable;

/**
 * Represents a request from a remote client to a Reactor.
 *
 * @author Azubuko Obele (buko.obele@gmail.com)
 */
public class TunnelRequest implements Serializable {

    private ActionPacket input;

    private TunnelClient client;

    public TunnelRequest(ActionPacket packet, TunnelClient client) {
        assert(packet != null && client != null);
        this.input = packet;
        this.client = client;
    }

    public ActionPacket getInputPacket() {
        return input;
    }

    public TunnelClient getRemoteClient() {
        return client;
    }
}
